home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / fish / 726-750 / 742 / patchlace / patchlace.doc < prev    next >
Text File  |  1995-03-18  |  6KB  |  171 lines

  1. short: switches PAL to NTSC on interlace screens to reduce flicker
  2.  
  3.     PatchLace v1.1  © Martin W. Scott, 1992
  4.     ---------------------------------------
  5.     [Released 7/92]
  6.  
  7.  
  8.     Requirements
  9.     ------------
  10.     Workbench 2.04
  11.     ESC ('Fatter') Agnus (the 1-meg chipram Agnus)
  12.  
  13.  
  14.     When you won't need PatchLace
  15.     -----------------------------
  16.     You have a flicker-fixer
  17.     You have a VGA or A2024 monitor
  18.  
  19.  
  20.     History
  21.     -------
  22.     v1.1    - now a commodity. See below for revised instructions on
  23.           toggling and killing PatchLace.
  24.  
  25.     v1.0    - initial release.
  26.  
  27.  
  28.     Overview
  29.     --------
  30.     As a poor Amiga owner, I can't afford a multiscan monitor or flicker
  31.     fixer, so when a program uses an interlaced screen, it's a real pain on
  32.     the eyes. Ways to reduce flicker are:
  33.  
  34.         - Fiddle around with the palette (if you get the chance);
  35.  
  36.         - Wear shades (hmm...feel a bit stupid doing that);
  37.  
  38.         - If you're machine is PAL, switch it to NTSC mode.
  39.  
  40.     The latter one reduces flicker since frames are updated 30    
  41.     frames/second rather than 25 frames/second. Now with the ECS Agnus    
  42.     (8372A/B) installed, you can switch between PAL and NTSC, and there are
  43.     programs to do this (by Nico Francois, for example). The trouble is
  44.     that non-interlaced screens get put into NTSC, you lose the bottom of  
  45.     some screens, and the top border looks garbled.
  46.  
  47.     This program patches the OpenScreen routines to kick in NTSC mode when
  48.     the following criteria are met:
  49.  
  50.         - An interlaced screen is wanted;
  51.  
  52.         - PAL mode has NOT been specifically requested;
  53.  
  54.         - The screen height is no greater than the Workbench overscan
  55.       prefs allow, or a 'standard' screen is asked for, implying caller
  56.       will use what it gets.
  57.  
  58.     These conditions could be tightened to look at things like overscan tags.
  59.     If there's enough interest, I'll change it.
  60.  
  61.  
  62.     Starting PatchLace
  63.     ------------------
  64.     Easiest is to plonk the PatchLace program to your WBStartup drawer, and
  65.     forget about it (but remember to have the DONOTWAIT tooltype set). You can
  66.     also start it from CLI, by a command such as
  67.  
  68.         > Run >NIL: PatchLace
  69.  
  70.     in your user-startup. The patches are applied safely (in the Commodore-
  71.     approved manner).
  72.  
  73.     PatchLace is implemented as a commodity since version 1.1, which means
  74.     it can be controlled by the Commodities Exchange program in the System
  75.     drawer of the Workbench disk. From this program, you can disable and
  76.     enable the patches as desired, and can completely remove PatchLace from
  77.     your system by the Kill command. Consult the manual that came with your
  78.     Amiga/OS Upgrade for further information about commodities.
  79.  
  80.     You can also remove PatchLace by sending it a CONTROL_C signal (via the
  81.     CLI break command, or programs like Xoper, TaskX or ARTM) or by running
  82.     it again.
  83.     
  84.     A stack size of 2000 bytes seems sufficient (from Workbench startup
  85.     anyway). Well, that's about it. Don't expect the miraculous
  86.     disappearance of flicker, but there is a significant improvement. And
  87.     if you don't already use it, check out LacePointer by Nico Francois -
  88.     it makes the pointer prettier on interlaced screens.
  89.  
  90.  
  91.     Compatability List
  92.     ------------------
  93.     This is not at all meant to be all-encompassing, just an indication of
  94.     what you can expect.
  95.  
  96.     The following work as you'd expect:
  97.  
  98.         Display (Commodore picture viewer);
  99.         Mostra 1.04;
  100.         PhotonPaint;
  101.         PicBase 0.36;
  102.         SunClock 1.0;
  103.         AHextrix 1.0;
  104.         Hex 1.01;
  105.         Vertex;
  106.     DirWork 1.62;
  107.  
  108.     And the following don't switch into NTSC mode:
  109.  
  110.         DeluxePaint III;
  111.  
  112.     Feel free to inform me of programs which should appear on either list.
  113.  
  114.  
  115.     Finally...
  116.     ----------
  117.     I wrote this for my own use, specifically for a few programs that use
  118.     interlaced screens (PicBase, SunClock etc.). However, other users
  119.     (mainly PAL users) may have a use for it. Note that it won't work with
  120.     some programs (such as DPaint) which check to see what displaymode
  121.     you're using and ask for a screen to fit -- in such instances, you may
  122.     use programs that GLOBALLY alter the displaymode. 
  123.  
  124.     Another small problem I've found is that Spliner, the screen-blanking
  125.     program by Sebastiano Vigna, allows you to select the displaymode, but
  126.     doesn't request exactly what you ask. Instead it checks which mode
  127.     you're in, and only asks for the one you specified if it is different.
  128.     Here's an example of what I mean:
  129.  
  130.         You are running a PAL system;
  131.         You want to blank with a PAL interlaced screen;
  132.         Spliner sees you're in PAL already, so just asks for interlace;
  133.         PatchLace assumes the caller doesn't care which, and adds NTSC;
  134.         You get the wrong screen.
  135.  
  136.     At least, I assume that's what's happening -- my code may be wrong.
  137.     This isn't a major problem generally (or is it?) but when it comes to
  138.     screen blanking, I can do without the PAL-to-NTSC monitor jump. Other
  139.     display blankers, such as ASwarmIII, request what YOU request.
  140.  
  141.  
  142.     Distribution
  143.     ------------
  144.     PatchLace is freely redistributable; it must be distributed with this
  145.     document intact, and it may not be sold for profit. Permission must be
  146.     obtained from me to distribute this program on a magazine-disk (since
  147.     that is a form of profit-making).
  148.  
  149.  
  150.     Contact
  151.     -------
  152.     I'd be very grateful for bug-reports, comments or suggestions.  As
  153.     always, contributions are not obligatory, but would be happily
  154.     accepted.  I can be reached by postal mail at:
  155.  
  156.         Martin W. Scott,
  157.         23, Drum Brae North,
  158.         Edinburgh,
  159.         EH4 8AT
  160.         United Kingdom (the one that keeps getting Conservative
  161.                         governments it didn't elect democratically).
  162.  
  163.     or by e-mail, mws@castle.ed.ac.uk                  
  164.  
  165.     Source is available on request (by email or reply-paid envelope with
  166.     disk or enough money to cover materials, say US $5).
  167.  
  168.     Enjoy!
  169.  
  170.         Martin.
  171.